package xyz.naoyu.servlets.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.io.IOException;

/**
 * @author yWieLoc
 * @date 2022/3/18 18:53
 */
@WebFilter( urlPatterns = {"/index.html","/login.html"})
public class LoginFilter implements Filter {

    @Override
    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain filterChain) throws IOException, ServletException {
//        HttpSession session = (HttpServletRequest) req;
        // TODO: 2022/3/18 自动登录过滤
    }
}
